/*
 * =====================================================================================
 *
 *       Filename:  QCfgLog.h
 *
 *    Description:  this is a QCfgLog's header file
 *
 *        Version:  1.0
 *        Created:  2012年04月18日 11时11分16秒
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  Michael lee
 *         E-mail:  Michael.20#qq.com
 *
 * =====================================================================================
 */
#ifndef QCFGLOG_H
#define QCFGLOG_H

#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/shm.h>
#include <sys/file.h>
#include <wait.h>
#include <stdlib.h>
#include <time.h>
#include <stdarg.h>
#include <string.h>
#define     Q_FILE_PATH_LEN   48
#define     Q_BUF_NUM         256
#define     Q_MAX_ITEM_LEN    20

class QCfgLog
{
public:
    QCfgLog(const char *filePath)
	{
		strcpy(mFilePath,filePath);
	}
    ~QCfgLog()
	{

	}
	void showPath();
    void log(const char* format,...);
    int setValue(const char *item,const char *format,...);
    char *value(const char *item);

private:
    char mFilePath[Q_FILE_PATH_LEN];
};

#endif
